import request from '@/axios/axios.js';

export const warehouseLocationListApi = (name) => {
  return request({
    method: 'get',
    url:'/dms/common/queryLocationList',
    // url: '/dms/common/queryBackupList',
    // url: '/dms/dmsBackupConfig/queryBackups',
    params:{
      name,
      pageSize:9999,
      pageNum:1,
    },
  })
};

export const mouldIdListApi = (params) => {
  return request({
    method: 'post',
    url: '/dms/equipInfo/queryEquipfoList',
    data: params
  })
};

// 查询
export const searchApi = (params) => {
  return request({
    method: 'get',
    url: '/dms/procedure/list',
    params: params
  })
};

// 增加
export const addApi = (params) => {
  return request({
    method: 'post',
    url: '/dms/procedure/save',
    data: params
  })
};

// 根据ID查询或者名称模糊查询
export const infoApi = (params) => {
  return request({
    method: 'get',
    url: '/dms/procedure/info',
    params: params
  })
};

// 修改
export const updateApi = (params) => {
  return request({
    method: 'put',
    url: '/dms/procedure/update',
    data: params
  })
};

// 删除
export const deleteApi = (params) => {
  return request({
    method: 'delete',
    url: '/dms/procedure/delete',
    data: params
  })
};

// 导出
export const exportApi = (data) => {
  return request({
    method: 'get',
    url: '/dms/procedure/export',
    params: data,
    responseType: 'blob'
  })
};


